#include <boost/filesystem.hpp>
#include <Windows.h>

int main()
{
	try {
		std::cout << boost::filesystem::absolute("photo.jpg") << std::endl;
		std::cout << boost::filesystem::absolute("photo.jpg","D:/") << std::endl;
		std::cout << boost::filesystem::current_path() << std::endl;
		SetCurrentDirectoryA("F:\\");
		std::cout << boost::filesystem::current_path() << std::endl;
	}
	catch (boost::filesystem::filesystem_error &e) {
		std::cerr << e.what() << std::endl;
	}
}